package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserController {

    //rest风格访问路径完整书写方式
    @RequestMapping("/restLocation")
    //使用@PathVariable注解获取路径上配置的具名变量，该配置可以使用多次
    public String restLocation(){
        System.out.println("restful is running ....");
        return "success.jsp";
    }

}
